package com.gxa.service;

import com.gxa.exception.CustomerException;
import com.gxa.pojo.Manager;


/**
 * @author 伍炳清
 * @date 2020-09-21 18:51
 */
public interface ManagerService {

    //管理员添加
    void addManager(Manager manager) throws CustomerException;

    //管理员登录
    Manager login(String username, String password) throws CustomerException;

    //管理员修改密码
    void updatePassword(String username, String oldPassword, String newPassword) throws CustomerException;

    //管理员修改基本信息
    void updateManager(Manager manager) throws CustomerException;

    //通过id查询管理员
    Manager findManagerById(Integer id) throws CustomerException;

    //删除管理员
    void deleteManager(Integer id) throws CustomerException;

}
